﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace XnaGameStudio1
{
    //-----------------------------------------------------------------------------------------------
    class WaterDropObject
    {
        VertexDeclaration vertexDeclaration;
        List<VertexPositionTexture> vertices;

        //-------------------------------------------------------------------------------------------
        public WaterDropObject()
        {
            vertexDeclaration = new VertexDeclaration(new VertexElement[]
                {
                    new VertexElement(0, VertexElementFormat.Vector3, VertexElementUsage.Position, 0),
                    new VertexElement
                        (24, VertexElementFormat.Vector2, VertexElementUsage.TextureCoordinate, 0)
                }
            );

            // BUILD VERTICES
            vertices = new List<VertexPositionTexture>();
            // Left Bottom
            vertices.Add(new VertexPositionTexture(new Vector3(-1, -1, 0), new Vector2(0, 1)));
            // Left Top
            vertices.Add(new VertexPositionTexture(new Vector3(-1, 1, 0), new Vector2(0, 0)));
            // Right Top
            vertices.Add(new VertexPositionTexture(new Vector3(1, 1, 0), new Vector2(1, 0)));
            // Right Bottom
            vertices.Add(new VertexPositionTexture(new Vector3(1, -1, 0), new Vector2(1, 1)));



        }
    }
}
